import React from 'react';
import { PrimaryC, SecondHeaderC, FirstHeaderC, ExportC } from '../../comps';
import apiCreator from '../../utils/apiCreator';
class ExportCDemo extends React.Component {
  state = {
    search: { date: '20191002', fundId: '940018', timestamp: 1634545730824, userId: '006562', type: '3' },
    url: 'api/v1/tradeAnaBndHoldInfo/exportSec',
    title: '持仓数据导出',
  };

  render() {
    return (
      <div style={{ padding: '20px' }}>
        <FirstHeaderC title='文件导出' />

        <SecondHeaderC title='正常导出' />
        <div style={{ marginBottom: '10px' }}>
          <ExportC url={this.state.url} search={this.state.search} />
        </div>

        <SecondHeaderC title='禁用状态' />
        <div style={{ marginBottom: '10px' }}>
          <ExportC url={this.state.url} search={this.state.search} disabled={true} />
        </div>

        <SecondHeaderC title='更换标题' />
        <div style={{ marginBottom: '10px' }}>
          <ExportC url={this.state.url} search={this.state.search} title={this.state.title} />
        </div>
      </div>
    );
  }
}

export default ExportCDemo;
